<?
if($arResult['ACTION'] == 'REFRESH_CHAT' && count($arResult['MESSAGES']))
{
	foreach ($arResult['MESSAGES'] as $key=>$arItem)
	{
		list($date, $time) = explode(" ", $arItem['DATE_CREATE']);
		
		$arResult['MESSAGES'][$key]['DATE_CREATE'] = $time;
	}	
}
